package com.xdjd.mobile.business.util;

import com.xdjd.mobile.business.constant.Constant;

/**
 * 
 * @ClassName: ServiceException.java
 * @Description: 异常类
 * @author yuanjn
 * @version V1.0
 * @Date 2014年4月23日 下午2:45:29
 */
public class ServiceException extends RuntimeException {

	private static final long	serialVersionUID	= 1L;
	private String				errorCode;

	public String getErrorCode() {
		return errorCode;
	}

	public ServiceException() {
		super();
	}

	public ServiceException(String message) {
		super(message);
	}

	public ServiceException(String errorCode, String message) {
		super(message);
		if (null == errorCode || "".equals(errorCode))
			errorCode = Constant.FAILED_OTHERS;
		this.errorCode = errorCode;
	}

	public ServiceException(Throwable cause) {
		super(cause);
	}

	public ServiceException(String message, Throwable cause) {
		super(message, cause);
	}

}
